<template>
  <div class="">
    <!-- <search></search> -->
      <dayBuy :listNav="listNav"></dayBuy>
      <swiper></swiper>
    <div v-show="shows">
      <recommect :listShow="listShow"></recommect>
    </div>
    <!-- 骨架屏 -->
    <div v-show="!shows" style="background:#fff">
        <van-skeleton title :row="5" />
        <van-skeleton title :row="5" />
        <van-skeleton title :row="5" />
        <van-skeleton title :row="5" />
    </div>
  </div>
</template>

<script>
import search from "../components/show/search.vue";
import swiper from "../components/show/swiper.vue";
import recommect from "../components/show/recommect.vue";
import dayBuy from "../components/show/dayBuy.vue";
export default {
  name: "WorkspaceJsonShow",

  data() {
    return {
      shows:false,
      listNav: [],
      listShow: [],
    };
  },
  components: {
    search,
    dayBuy,
    swiper,
    recommect,
  },

  mounted() {
    this.$http.get("/cat_yanchu").then((res) => {
        if(res.data.code==200){
            this.shows = true
        }
      this.listNav = res.data.data.splice(47);
      this.listShow = res.data.data.splice(0, 47);
    });
  },

  methods: {},
};
</script>

<style lang="scss" scoped>
</style>